package huoye.shops.huoye.operation.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.codeideology.android.widget.recycler.RecyclerViewAdapter;

import butterknife.BindView;
import huoye.shops.R;
import huoye.shops.huoye.operation.model.OrderRecords;
import huoye.shops.huoye.operation.model.SellOrder;
import huoye.shops.huoye.operation.model.OrderProducts;
import huoye.shops.widget.RoundImageView;


/**
 * Created by uesr on 2018/8/10.
 */

public class OrderDetailsStateAdapter extends RecyclerViewAdapter<OrderDetailsStateAdapter.ViewHolder,OrderRecords> {



    public OrderDetailsStateAdapter(Context context) {
        super(context, R.layout.item_order_details_state);
    }

    @Override
    protected ViewHolder initViewHolder(View view, int i) {

        return new ViewHolder(view);
    }

    @Override
    protected void bindView(ViewHolder holder, OrderRecords orderRecords, int i) {

        holder.tvTime.setText(orderRecords.getOperationTime());
        holder.tvState.setText(orderRecords.getOperationTitle());

    }


    public class ViewHolder extends RecyclerViewAdapter.ViewHolder {


        @BindView(R.id.item_order_details_state_tv_time)
        TextView tvTime;
        @BindView(R.id.item_order_details_state_tv_state)
        TextView tvState;



        public ViewHolder(View itemView) {
            super(itemView);
        }
    }




}
